const Net = require('./common.js')
App({
  onLaunch: function () {
    var token = wx.getStorageSync('access_token')
    // if (token) {
    //   console.log('已登录，前往首页》》》》》》》》')
    //   setTimeout(() => {
    //     wx.switchTab({
    //       url: '/pages/dreamBrightness_index/index',
    //     })
    //   }, 500);
    // } else {
    //   console.log('未登录，前往登陆》》》》》》》》')
    //   wx.reLaunch({
    //     url: '/pages/dreamBrightness_loginGuide/loginGuide',
    //   })
    // }
  },
  globalData: {
    imgSrc: ''
  },
  NetPageIP: {
    _login: "/pages/dreamBrightness_login/login",
    _index: "/pages/dreamBrightness_index/index",
    _loginGuide: "/pages/dreamBrightness_loginGuide/loginGuide",
    _ceshi: "/pages/ceshi/ceshi",
    _MyPage: "/pages/dreamBrightness_MyPage/MyPage",
    _OrderList: "/pages/dreamBrightness_OrderList/OrderList",
    _userShopAdministration: "/pages/dreamBrightness_userShopAdministration/userShopAdministration",
    _Activity: "/pages/dreamBrightness_Activity/Activity",
    _previewStore: "/pages/dreamBrightness_previewStore/previewStore",
    _goodsSql: "/pages/dreamBrightness_goodsSql/goodsSql",
    _ActiveityCreate: "/pages/dreamBrightness_ActiveityCreate/ActiveityCreate",
    _ChoiceGoods: "/pages/dreamBrightness_ChoiceGoods/ChoiceGoods",
    _CreateActivitySuccess: "/pages/dreamBrightness_CreateActivitySuccess/CreateActivitySuccess",
    _Admirers: "/pages/dreamBrightness_Admirers/Admirers",
    _onUserOrderInfo: "/pages/dreamBrightness_onUserOrderInfo/onUserOrderInfo",
    _onToDeliverGoods: "/pages/dreamBrightness_onToDeliverGoods/onToDeliverGoods",
    _address: '/pages/dreamBrightness_address/address',
    _onOrderInfo: '/pages/dreamBrightness_onOrderInfo/onOrderInfo',
    _onUserCore: '/pages/dreamBrightness_onUserCore/onUserCore',
    _onUserInfo: '/pages/dreamBrightness_onUserInfo/onUserInfo',
    _onAddressList: '/pages/dreamBrightness_onAddressList/onAddressList',
    _onCreateAddress: '/pages/dreamBrightness_onCreateAddress/onCreateAddress'
  }
})